package cn.hellochaos.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜谱分类标签
 * </p>
 *
 * @author test
 * @since 2021-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FenleiCaipu extends Model<FenleiCaipu> {

    private static final long serialVersionUID = 1L;

    /**
     * 分类标签编号
     */
    @TableId(value = "tag_is", type = IdType.AUTO)
    private Integer fenleiCaipuId;

    /**
     * 分类标签类别
     */
    private String tagCategory;

    /**
     * 分类标签名称
     */
    private String tag;


    @Override
    protected Serializable pkVal() {
        return this.fenleiCaipuId;
    }

}
